﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ChangeCursorImg : MonoBehaviour
{
    public Texture2D m_ResizeCursor;


    // Start is called before the first frame update
    void Start()
    {
        EventTriggerListener.Get(transform).onEnter += OnEnter_Corner;
        EventTriggerListener.Get(transform).onExit += OnExit_Corner;
    }

    private void OnExit_Corner(GameObject go)
    {
        Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
    }

    private void OnEnter_Corner(GameObject go)
    {
        Cursor.SetCursor(m_ResizeCursor, Vector2.zero, CursorMode.Auto);
    }

    // Update is called once per frame
    void Update()
    {

    }
}
